import request from '@/utils/request'

// 查询年级信息列表
export function gradeList(query) {
  return request({
    url: '/basic/grade/list',
    method: 'get',
    params: query
  })
}
// 获取年级下拉框
export function getGradeSelect() {
  return request({
    url: '/basic/grade/getGradeSelect', 
    method: 'get',
  })
}
// 导出年级信息列表
export function gradeExport(data) {
  return request({
    url: '/basic/grade/export',
    method: 'post',
    data: data
  })
}
// 新增年级信息
export function addGrade(data) {
  return request({
    url: '/basic/grade',
    method: 'post',
    data: data
  })
}
// 修改年级信息
export function updataGrade(params) {
  return request({
    url: '/basic/grade',
    method: 'put',
    data: params
  })
}
// 删除年级信息
export function delGrade(params) {
  return request({
    url: '/basic/grade/' + params,
    method: 'delete',
  })
}
// 获取年级详细信息
export function gradeInfor(query) {
    return request({
      url: '/basic/grade/' + query,
      method: 'get',
    })
  }



